<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./echarts.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="main" style="width:600px ; height: 400px;"></div> 
    <script>
        var myEchart = echarts.init(document.getElementById("main"))

        var option = {
            xAxis: {
                name:'周',
                nameLocation:"middle",
                nameTextStyle:{fontSize:30},
                nameGap:30,
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                name:'数',
                nameLocation:"middle",
                nameTextStyle:{fontSize:20},
                nameGap:30,
                type: 'value',
                axisTick:{
                    // 刻度
                    show:true,
                    inside:true,
                    length:10,
                    lineStyle:{
                        color:"deepskyblue"
                    }
                },
                axisLine:{
                    // y主轴
                    show:true,
                    symbol:"arrow",
                    symbolSize:[5,5],
                    symbolOffset:[-10,10],
                    lineStyle:{
                        color:"deepskyblue",
                        width:1,
                        type:"dotted"
                    }
                },
                axisLabel:{
                    // 刻度信息
                    show:true,
                    align:'right',
                    formatter:'${value}',
                    margin:5
                }
            },
            series: [
                {
                    data: [150, 230, 224, 218, 135, 147, 260],
                    type: 'line'
                }
            ]
        };

        myEchart.setOption(option)
    </script>
</body>

</html>